package drds.server.config.util;

import java.lang.reflect.Field;
import java.text.AttributedString;

public class Jvm {
	private static final boolean reverseFieldOrder;

	static {
		boolean reverse = false;
		final Field[] fields = AttributedString.class.getDeclaredFields();
		for (int i = 0; i < fields.length; i++) {
			if (fields[i].getName().equals("text")) {
				reverse = i > 3;
			}
		}
		reverseFieldOrder = reverse;
	}

	public static boolean reverseFieldDefinition() {
		return reverseFieldOrder;
	}

}